package com.serkol.ams.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.serkol.ams.bean.MyPage;
import com.serkol.ams.bean.MyPageOld;
import com.serkol.ams.entity.Agent;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
* @author pingan
* @description 针对表【agent】的数据库操作Service
* @createDate 2022-09-20 11:45:23
*/
public interface AgentService extends IService<Agent> {

    Map<String, Object> findByMapId(Long agentId);

    MyPage<Map<String, Object>> findByList(int pageSize, int current);

    long getOrdinary(int state);

    List<Map<String, Object>> findByMiniList(long userId);

    List<Map<String, Object>> findByPerList(long userId);

    Agent getByAgent(BigDecimal paymentAmount, Long agentId);

    List<Map<String, Object>> homeAgentChartStastic();
}
